#include <stdio.h>
#include <string.h>

int main1()
{
    int a[10] = {1,2,3,4,5,6,7,8,9,10};
    int b[10] = { 0 };
    memcpy(b, a, sizeof(a));

    int i;
    for(i = 0; i < 10; i++)
    {
        printf("b[%d] = %d\n", i, b[i]);
    }
    return 0;
}

int main()
{
    short a[10] = {1,2,3,4,5,6,7,8,9,10};
    int b[10] = { 0 };
    memcpy(b, a, sizeof(a));

    int i;
    for(i = 0; i < 10; i++)
    {
        printf("b[%d] = %08x\n", i, b[i]);
    }
    return 0;
}

